/************************
#include<iostream>
#include<stdio.h>
#include<conio.h>
using namespace std;

class Date
{
public:
	Date();
	Date(int d, int m, int y); 
	void nhap(){
		cout<<"\nNhap d, m, y: ";
		cin>>D>>M>>Y;
	}
	~Date();
	bool isNhuan(){
		if((Y % 4 == 0) && (D%100!= 0)){
			return true;
		}
		return false;
	}
	int stt(){
		int s =0;
		for (int i = 1; i < Y; i++)
		{
			s+=(isNhuan()) ? 366:365;
		}
		s+=sttTrongNam();
		return s;
	}
	int sttTrongNam(){
		int s = 0;
		int a[] = {31,28,31,30,31,30,31,31,30,31,30,31};
		if(isNhuan()){
			a[1] = 29;
		}
		for(int i=0; i<M-1; i++){
			s+=a[i];
		}
		s+=D;
		return s;
	}
	void hienThi(){
		cout<<"\nDD/MM/YY: "<<D<<" "<<M<<" "<<Y;
		cout<<"\nSTT: "<<stt();
	}
	void khoangCach(Date d2){
		int r= stt() - d2.stt();
		cout<<"\nKhoang cach: "<<r;
	}
private:
	int M,D,Y;
};

Date::Date()
{
}

Date::~Date()
{
}

void main(){
	Date d1, d2;
	d1.nhap();
	//d1.stt();
	d1.hienThi();
	d2.nhap();
	d2.hienThi();
	d1.stt();
	d1.khoangCach(d2);
	getch();

}
/*******************/